﻿// <copyright file="IDataCollector.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-11-27</date>
// <summary>IDataCollector interface definition</summary>

namespace Microsoft.WebAnalytics.Contracts
{
    /// <summary>
    /// Data collector interface
    /// </summary>
    public interface IDataCollector
    {
        /// <summary>
        /// Initialize the data collector with the application's initialization parameters
        /// </summary>
        /// <param name="dictionary">the initParams from the application startup event handler</param>
        void Initialize(System.Collections.Generic.Dictionary<string, string> dictionary);

        /// <summary>
        /// Log an analytics event
        /// </summary>
        /// <param name="logEvent">the log event</param>
        void Log(AnalyticsEvent logEvent);
    }
}
